package cn.facetoken.homer;

import android.view.View;

import androidx.annotation.NonNull;

public class PhotoRegistration<Feature> {

    public PhotoRegistration(final long id, @NonNull final String photoUri, @NonNull final String name, @NonNull final Feature faceFeature, @NonNull final Feature eyeprintFeature) {
        this.id = id;
        this.photoUri = photoUri;
        this.name = name;
        this.faceFeature = faceFeature;
        this.eyeprintFeature = eyeprintFeature;
    }

    final long id;
    final String photoUri;
    final String name;
    final Feature faceFeature;
    final Feature eyeprintFeature;
    float similarity;

    public void tagView(@NonNull final View view) {
        view.setTag(R.id.tag_key_id, id);
        view.setTag(R.id.tag_key_face_feature, faceFeature);
        view.setTag(R.id.tag_key_eyeprint_feature, eyeprintFeature);
    }
}
